public class Sentence {
	private String sentence;
	private String[] words;

	public String getSentence() {
		return sentence;
	}

	public String[] getWords() {
		return words;
	}

	public Sentence(String sentence) {
		this.sentence = sentence;
		processSentence();
	}

	private void processSentence() {
		words = sentence.split("[^а-яА-Я0-9]+");
	}
}
